<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../node_modules/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        {{birth}}<br>
        {{strCom}}
    </div>
</body>
    <script type="text/javascript">
        new Vue({
            el:"#app",
            data:{
                birthday:1233032123201,// 时间戳
                str:"嘤嘤1-1嘤"
            },
            computed: {
                birth() {
                    return new Date(this.birthday).getFullYear() + '-' + new Date(this.birthday).getMonth() + '-'
                        + new Date(this.birthday).getDay()
                },
                strCom(){
                    return this.str.split("-")[1];
                }
            }
        })
    </script>
</html>